import request from '@/utils/request'

export const getGoodsAPI = (data) => {
  return request.get('/goods', {
    params: data
  })
}

export const delGoods = id => {
  return request.delete('/goods/' + id)
}

export const searchGoodsAPI = (data, id) => {
  return request.put('/users/' + id, data)
}